export type FormType = {
  lable?: string,
  inputType?: string,
  placeholder?: string,
  lableFor?: string,
  query?: string,
  inputName?: string,
  readonly?: boolean
}

export default {
  login: [
    {
      lable: '用户名',
      inputType: 'text',
      placeholder: '请输入 6 - 8位昵称',
      lableFor: 'username',
      query: 'username',
      inputName: 'username',
    },
    {
      lable: '密码',
      inputType: 'password',
      placeholder: '请输入 8 - 12位密码 至少包含数字/大小写字符',
      lableFor: 'password',
      query: 'password',
      inputName: 'password',
    },
  ],
  register: [
    {
      lable: '用户名',
      inputType: 'text',
      placeholder: '请输入 6 - 8位昵称',
      lableFor: 'username',
      query: 'username',
      inputName: 'username',
    },
    {
      lable: '密码',
      inputType: 'password',
      placeholder: '请输入 8 - 12位密码 至少包含数字/大小写字符',
      lableFor: 'password',
      query: 'password',
      inputName: 'password',
    },
    {
      lable: '邮箱',
      inputType: 'text',
      placeholder: '请输入 正确格式邮箱',
      lableFor: 'email',
      query: 'email',
      inputName: 'email',
    },
    {
      lable: '昵称',
      inputType: 'text',
      placeholder: '请输入 正确格式昵称',
      lableFor: 'nickName',
      query: 'nickName',
      inputName: 'nickName',
    },
  ],

  postColumns: [
    {
      lable: '分类名称',
      inputType: 'text',
      placeholder: '请输入分类名称',
      lableFor: 'name',
      query: 'name',
      inputName: 'name',
    },
  ],

  userInfo: [
    {
      lable: '用户名',
      inputType: 'text',
      placeholder: '请输入 6 - 8位昵称',
      lableFor: 'username',
      query: 'username',
      inputName: 'username',
      readonly: true,
    },
    {
      lable: '图片上传',
      inputType: 'text',
      placeholder: '请输入 6 - 8位昵称',
      lableFor: 'avatar',
      query: 'avatar',
      inputName: 'avatar',
    },
    {
      lable: '邮箱',
      inputType: 'text',
      placeholder: '请输入 正确格式邮箱',
      lableFor: 'email',
      query: 'email',
      inputName: 'email',
    },
    {
      lable: '昵称',
      inputType: 'text',
      placeholder: '请输入 正确格式昵称',
      lableFor: 'nickName',
      query: 'nickName',
      inputName: 'nickName',
    },
    {
      lable: '个性签名',
      inputType: 'text',
      placeholder: '请输入 个性签名',
      lableFor: 'signalName',
      query: 'signalName',
      inputName: 'signalName',
    },
  ],
}
